package cn.ylz.ylmall.account.pojo.param;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class RoleAddNewParams implements Serializable {
    private String name;
    private String description;
    private Integer sort;
    @NotNull(message = "添加角色失败，请至少选择1种权限！")
    @Size(min = 1, message = "添加角色失败，请至少选择1种权限！")
    private Long[] permissionIds;
}
